<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/web/css/pintuer.css">
    <link rel="stylesheet" href="/Public/web/css/admin.css">
    <script src="/Public/web/js/jquery.js"></script>
    <script src="/Public/web/js/pintuer.js"></script>
</head>


<body style="background-color:#f2f9fd;">
  <div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
      <h1>

        <?php if(empty($company['company_logo'])): ?><img src="/Public/images/zanwu.jpg" class="radius-circle rotate-hover" height="50" />
          <?php else: ?>
          <img src="/<?php echo ($company['company_logo']); ?>" class="radius-circle rotate-hover" height="50" /><?php endif; ?>
        <?php echo ($company['company_name']); ?>
      </h1>
    </div>
    <div class="head-l" style="float: right; margin-right: 50px;">
      <a class="button button-little bg-red" href="<?php echo U('Login/logout');?>">
        <span class="icon-power-off"></span> <?php echo L("logout");?>
      </a>
    </div>
  </div>
  <div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span><?php echo L("caidanliebiao");?></strong></div>
      <?php if(is_array($topAuth)): $i = 0; $__LIST__ = $topAuth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$top): $mod = ($i % 2 );++$i;?><h2><span class="icon-star"></span><?php echo ($top["auth_name"]); ?></h2>
    <ul style="display:none">
        <?php if(is_array($sonAuth)): $i = 0; $__LIST__ = $sonAuth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i; if($son[auth_pid] == $top[auth_id]): ?><li>
                    <cite></cite><a href="<?php echo U($son['auth_controller'].'/'.$son['auth_action']);?>" target="right"><span class="icon-caret-right"></span><?php echo ($son["auth_name"]); ?></a>
                </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </ul><?php endforeach; endif; else: echo "" ;endif; ?>
  </div>
  <script type="text/javascript">
    $(function(){
      $(".leftnav h2").click(function(){
       $(this).next().slideToggle(200);	
       $(this).toggleClass("on");
     })
      $(".leftnav ul li a").click(function(){
       $("#a_leader_txt").text($(this).text());
       $(".leftnav ul li a").removeClass("on");
       $(this).addClass("on");
     })
    });
  </script>
  <ul class="bread">
    <li><a href="<?php echo U('Goods/index');?>" target="right" class="icon-home"> <?php echo L("home");?></a></li>
    <li><a href="#" id="a_leader_txt"><?php echo L("shangpinxinxi");?></a></li>
    <!--<li style="float: right;"><b><?php echo L("languager");?>：</b><a href="?l=zh-cn"><?php echo L("chinese");?></a> | <a href="?l=en-us"><?php echo L("english");?></a></li>-->
  </ul>
  <div class="admin">
    <iframe scrolling="auto" rameborder="0" src="<?php echo U('Goods/index');?>" name="right" width="100%" height="100%"></iframe>
  </div>
</body>

</html>